
package models.spider.config;

import models.spider.policy.IPolicy;
import models.spider.policy.Policy;
import models.spider.sink.Broadcast;
import models.spider.sink.Failure;
import models.spider.sink.ISink;
import models.spider.sink.Log;

public class AAA extends Factory {

    private static final long serialVersionUID = 1L;

    public AAA(final String name) {
        super(name);
    }

    public AAA() {
        super("aaa");
    }

    @Override
    public IPolicy newPolicy() {
        return Policy.URL;
    }

    @Override
    public ISink newSink() {
        ISink aaa = new models.spider.sink.AAA();
        ISink failure = new Failure(Log.WARNING);
        ISink result = new Broadcast(failure, aaa);

        return result;
    }
}
